package cn.org.xiaosheng.client.service;

import cn.org.xiaosheng.client.annotation.RpcClient;
import com.google.gson.JsonObject;
import org.springframework.stereotype.Service;

/**
 * @author XiaoSheng
 * @date 2024/8/22 下午5:27
 */
@Service
public class HelloService {

    @RpcClient(serverName = "HelloServiceImpl", methodName = "sayHello", returnType = String.class)
//    @RpcClient(returnType = String.class)
    public String sayHello(String name){return null;}


    @RpcClient(serverName = "HelloServiceImpl", returnType = JsonObject.class)
    public String sayHello2(String name){return null;}

}
